﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HMP.DA;
using HMP.BL;
namespace HMP.GUI
{
    public partial class NewCategoryItemForm1 : Form
    {
        public NewCategoryItemForm1()
        {
            InitializeComponent();
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            string provinceid = txtitemcode.Text;
            string provincename = txtitemname.Text;
            if (txtcategorytype.Text == "Province")
            {
                GUI.MainForm1.Insertprovince(provinceid, provincename);
            }
        }
    }
}
